<?php

require_once 'common.php';
require_once 'MJDMTask.php';
require_once 'MJDMUser.php';
require_once 'MJDMReward.php';
require_once 'dataCenter.php';

log_action("In Page : ".__FILE__);

if(!isset($_SESSION)){session_start();}

$user = GetUserBasicInfo();

//taskid
$id = $_GET["id"];

//points
$points =$_GET['points'];

//update task status
FinishTask($id, $points);

echo "Task has finished!";

?>